package resp

const Success = 1
const Fail = 0

var msgFlags = map[int]string{
	Fail:    "操作失败",
	Success: "操作成功",
}

func getMessageErr(code int) string {
	msg, ok := msgFlags[code]
	if ok {
		return msg
	}
	return msgFlags[Fail]
}
